package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qijian.maindata.domain.FactoryUser;
import org.apache.ibatis.annotations.Select;

/**
 * 班组关联小组长Mapper接口
 *
 * @author qijian
 * @date 2021-12-17
 */
public interface FactoryUserMapper extends BaseMapper<FactoryUser> {

    @Select("select count(0)+IF(#{isAddOne},1,0) from fm_factory_user WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel(boolean isAddOne);
}
